package org.qengine.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.qengine.dao.KnowDao;
import org.qengine.entity.KnowEntity;
import org.springframework.stereotype.Service;

@Service("knowService")
public class KnowServiceImpl extends ServiceImpl<KnowDao, KnowEntity> implements KnowService {

    @Override
    public Integer add(KnowEntity knowEntity) {
        return baseMapper.insert(knowEntity);
    }

    @Override
    public Integer deleteById(Long id) {
        return baseMapper.deleteById(id);
    }

    @Override
    public Integer update(KnowEntity knowEntity) {
        return baseMapper.updateById(knowEntity);
    }

}
